package com.yipao.db.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yipao.db.domain.YipaoSearchHistory;
import com.yipao.db.domain.YipaoSearchHistoryExample;

public interface SearchHistoryMapper {

    long countByExample(YipaoSearchHistoryExample example);


    int deleteByExample(YipaoSearchHistoryExample example);


    int deleteByPrimaryKey(Integer id);


    int insert(YipaoSearchHistory record);


    int insertSelective(YipaoSearchHistory record);


    YipaoSearchHistory selectOneByExample(YipaoSearchHistoryExample example);


    YipaoSearchHistory selectOneByExampleSelective(@Param("example") YipaoSearchHistoryExample example, @Param("selective") YipaoSearchHistory.Column ... selective);


    List<YipaoSearchHistory> selectByExampleSelective(@Param("example") YipaoSearchHistoryExample example, @Param("selective") YipaoSearchHistory.Column ... selective);


    List<YipaoSearchHistory> selectByExample(YipaoSearchHistoryExample example);


    YipaoSearchHistory selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") YipaoSearchHistory.Column ... selective);


    YipaoSearchHistory selectByPrimaryKey(Integer id);


    YipaoSearchHistory selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);


    int updateByExampleSelective(@Param("record") YipaoSearchHistory record, @Param("example") YipaoSearchHistoryExample example);


    int updateByExample(@Param("record") YipaoSearchHistory record, @Param("example") YipaoSearchHistoryExample example);


    int updateByPrimaryKeySelective(YipaoSearchHistory record);


    int updateByPrimaryKey(YipaoSearchHistory record);


    int logicalDeleteByExample(@Param("example") YipaoSearchHistoryExample example);


    int logicalDeleteByPrimaryKey(Integer id);
}
